package com.gupao.jly521.hungary;

/**
 * @author Jly
 * @date 2018/8/21  15:12
 */
public class Hungary {

    /**
     *  触发类加载，就会初始化 Hungary 实例
     * @date 2018/8/21 15:21
     * @author Jly
     * @param
     * @return
     */
    private final static Hungary hungary = new Hungary();

  /**
   * 私有构造函数，不允许new操作
   * @date 2018/8/21 15:14
   * @author Jly
   * @param []
   * @return
   */
    private Hungary(){}

    /**
     * 获取实例
     * @date 2018/8/21 15:19
     * @author Jly
     * @param []
     * @return com.gupao.jly521.Hungary
     */
    public static Hungary getNewInstance(){
        return hungary;
    }
}
